Skip to content

Prevent Stratakit grid-level props from being passed to cards#215

Merged
alexdunae merged 4 commits into
mainfrom
alex/filter-stratakit-card-props
Jun 17, 2026
Merged

Prevent Stratakit grid-level props from being passed to cards#215
alexdunae merged 4 commits into
mainfrom
alex/filter-stratakit-card-props

Conversation

@alexdunae

Copy link
Copy Markdown
Contributor

Previously, props like useTileState and gridProps (which are used to build up a card's props) could be passed to Stratakit card components, triggering warnings like

React does not recognize the `useTileState` prop on a DOM element. 
If you intentionally want it to appear in the DOM as a custom attribute, 
spell it as lowercase `usetilestate` instead. If you accidentally passed it 
from a parent component, remove it from the DOM element. Error Component Stack

This PR adds a filtering function to strip out those props before actually rendering the card.

@alexdunae alexdunae marked this pull request as ready for review June 16, 2026 19:08
Comment thread packages/modules/imodel-browser/src/mui/containers/iModelGrid/IModelGridMUI.tsx Outdated
Comment thread packages/modules/imodel-browser/src/mui/containers/ITwinGrid/ITwinGridMUI.tsx Outdated
alexdunae and others added 2 commits June 17, 2026 06:45
Co-authored-by: Todd Southen <48103957+toddsouthenbentley@users.noreply.github.com>
@alexdunae alexdunae enabled auto-merge (squash) June 17, 2026 17:48
@alexdunae alexdunae merged commit abc5a9d into main Jun 17, 2026
5 checks passed
@alexdunae alexdunae deleted the alex/filter-stratakit-card-props branch June 17, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants